package javase0829;

import java.io.Serializable;

/**
 * 订单
 */
public class ScOrder implements Serializable {
    /**
     * 订单编号
     */
    private int no;
    /**
     * 菜品编号
     */
    private int dishNo;
    /**
     *菜品名称
     */
    private String name;
    /**
     *总价
     */
    private int totalPrice;

    /**
     *账号
     */
    private String userName;
    /**
     *数量
     */
    private int count;

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public int getDishNo() {
        return dishNo;
    }

    public void setDishNo(int dishNo) {
        this.dishNo = dishNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(int totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "ScOrder{" +
                "no=" + no +
                ", dishNo=" + dishNo +
                ", name='" + name + '\'' +
                ", totalPrice=" + totalPrice +
                ", userName='" + userName + '\'' +
                ", count=" + count +
                '}';
    }
}
